package com.hsbc.ins.ips.hello;

import java.io.IOException;
import java.io.InputStream;
import java.net.URL;

import org.apache.hadoop.io.IOUtils;

public class HelloHDFSHttp {
	public static void main(String[] args) throws IOException {
		//remote access http protocol
		URL url = new URL("http://www.baidu.com");
		InputStream in = url.openStream();
		IOUtils.copyBytes(in, System.out,4096,true)  ;
	}
}
